import { axios } from '@/utils/request'

/**
 * 文件管理
 */
export function deleteFile (fileName) {
  const parameter = {}
  if (fileName != undefined) {
    parameter.fileName = fileName
  }
  return axios({
    url: '/sys/upload/deleteFile',
    method: 'post',
    params: parameter
  })
}

export function saveUploadFile (parameter) {
  return axios({
    url: '/sys/upload/saveUploadFile',
    method: 'post',
    data: parameter
  })
}

export function selectPage (parameter) {
  return axios({
    url: '/sys/upload/selectPage',
    method: 'post',
    params: parameter
  })
}

export function updateStatus (id) {
  return axios({
    url: '/sys/upload/' + id + '/updateStatus',
    method: 'get'
  })
}